package com.omaitec.log4j.mq.producer;

import org.apache.log4j.Logger;

public class Log4jProducer extends Thread {

    private Logger logger;

    public Log4jProducer(String s) {
	logger = Logger.getLogger(s);

    }

    @Override
    public void run() {
	int i = 0;
	while (true) {
	    logger.info("i 的 值:" + i);
	    i++;
	    try {
		Thread.sleep(1000);
	    } catch (InterruptedException e) {
		e.printStackTrace();
	    }
	}
    }

}
